package net.jueb.protoServer.controller;

import io.netty.channel.ChannelHandlerContext;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;

/**
 * 默认消息处理控制器
 * @author Administrator
 *
 */
public final class DefaultServiceController extends ServiceController<Object>{
	protected static final InternalLogger log = InternalLoggerFactory.getInstance(DefaultServiceController.class);
	@Override
	public String getControllerName() {
		return "默认消息处理控制器";
	}
	
	/**
	 * 自定义控制器应该不会用到这么大的数值
	 */
	@Override
	public int getId() {
		return Integer.MAX_VALUE;
	}

	@Override
	public void execute(ChannelHandlerContext ctx, Object extMsg)throws Exception {
		log.debug("收到未匹配控制器的消息:"+extMsg.toString());
	}

}
